/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.equipment.entity;

import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.common.utils.StringUtils;
import com.thinkgem.jeesite.modules.sys.entity.Office;

import java.util.Date;

/**
 * 未审核接入设备管理Entity
 * @author ZC
 * @version 2017-06-20
 */
public class EleEquipmentNocheck extends DataEntity<EleEquipmentNocheck> {
	
	private static final long serialVersionUID = 1L;
	private EleEquipmentType type;		// s设备类型
	private Office company;		// company
	private Office office;		// 分组编号
	private String code;		// 设备ID
	private int width;		// 分辨率宽
	private int height;		// 分辨率高
	private int audiovolume;		// 音频音量
	private int videovolume;		// 视频音量
	private String ipaddress;		// ip地址
	private String ipmode;		// 是否自动获取IP,0：静态，1：动态，默认1
	private String serverIpaddress;		// server_ipaddress
	private String serverPort;		// server_port
	private int backlight;		// 亮度
	private int sleeplightlevel1;		// 休眠时的背光亮度
	private int hangupthreshold1;		// 休眠时间
	private int sleeplightlevel2;		// 休眠时的背光亮度
	private int hangupthreshold2;		// 休眠时间
	private int personlimit;		// 载人
	private int kglimit;		// 载重KG
	private int timezone;		// 时区
	private String language;		// 0：英文，1：中文，默认1
	private String orientation;		// 1：竖屏，0：横屏,10.4寸默认0 , 15寸默认1
	private String mv;		// 单片机APP版本
	private String pv;		// 显示APP版本
	private String sv;		// 设置APP版本
	private String floorMapping;		// 楼层映射
	private String address;		// 位置/项目
	private String wifiName;		// wifi_name
	private String wifiPassword;		// wifi_password
	private String state;		// 在线/离线状态
	private Date stateDate;		// state_date
	private int fullscreen;		// 是否全屏,0：非全屏，1：全屏
	private int titledisplay;		// 标题显隐,0：隐藏，1：显示
	private int timedisplay;		// 时间、日期显隐,0：隐藏，1：显示
	private int subtitledisplay;		// 滚动文字显隐,0：隐藏，1：显示
	private int imageinterval;		// 图片间隔,秒1-300
	private String dateformat;		// 日期格式
	private int timeformat;		// 时间格式
	private String name;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public EleEquipmentNocheck() {
		super();
	}

	public EleEquipmentNocheck(String id){
		super(id);
	}

	public EleEquipmentType getType(){
		return type;
	}

	public void setType(EleEquipmentType type){
		this.type = type;
	}

	public Office getCompany(){
		return company;
	}

	public void setCompany(Office company){
		this.company = company;
	}

	public Office getOffice(){
		return office;
	}

	public void setOffice(Office office){
		this.office = office;
	}

	public String getCode(){
		return code;
	}

	public void setCode(String code){
		this.code = code;
	}

	public int getWidth(){
		return width;
	}

	public void setWidth(int width){
		this.width = width;
	}

	public int getHeight(){
		return height;
	}

	public void setHeight(int height){
		this.height = height;
	}

	public int getAudiovolume(){
		return audiovolume;
	}

	public void setAudiovolume(int audiovolume){
		this.audiovolume = audiovolume;
	}

	public int getVideovolume(){
		return videovolume;
	}

	public void setVideovolume(int videovolume){
		this.videovolume = videovolume;
	}

	public String getIpaddress(){
		return ipaddress;
	}

	public void setIpaddress(String ipaddress){
		this.ipaddress = ipaddress;
	}

	public String getIpmode(){
		return ipmode;
	}

	public void setIpmode(String ipmode){
		this.ipmode = ipmode;
	}

	public String getServerIpaddress(){
		return serverIpaddress;
	}

	public void setServerIpaddress(String serverIpaddress){
		this.serverIpaddress = serverIpaddress;
	}

	public String getServerPort(){
		return serverPort;
	}

	public void setServerPort(String serverPort){
		this.serverPort = serverPort;
	}

	public int getBacklight(){
		return backlight;
	}

	public void setBacklight(int backlight){
		this.backlight = backlight;
	}

	public int getSleeplightlevel1(){
		return sleeplightlevel1;
	}

	public void setSleeplightlevel1(int sleeplightlevel1){
		this.sleeplightlevel1 = sleeplightlevel1;
	}

	public int getHangupthreshold1(){
		return hangupthreshold1;
	}

	public void setHangupthreshold1(int hangupthreshold1){
		this.hangupthreshold1 = hangupthreshold1;
	}

	public int getSleeplightlevel2(){
		return sleeplightlevel2;
	}

	public void setSleeplightlevel2(int sleeplightlevel2){
		this.sleeplightlevel2 = sleeplightlevel2;
	}

	public int getHangupthreshold2(){
		return hangupthreshold2;
	}

	public void setHangupthreshold2(int hangupthreshold2){
		this.hangupthreshold2 = hangupthreshold2;
	}

	public int getPersonlimit(){
		return personlimit;
	}

	public void setPersonlimit(int personlimit){
		this.personlimit = personlimit;
	}

	public int getKglimit(){
		return kglimit;
	}

	public void setKglimit(int kglimit){
		this.kglimit = kglimit;
	}

	public int getTimezone(){
		return timezone;
	}

	public void setTimezone(int timezone){
		this.timezone = timezone;
	}

	public String getLanguage(){
		return language;
	}

	public void setLanguage(String language){
		this.language = language;
	}

	public String getOrientation(){
		return orientation;
	}

	public void setOrientation(String orientation){
		this.orientation = orientation;
	}

	public String getResolution(){
        return width + "*" + height;
	}
	public void setResolution(String resolution){
		try{
			if(StringUtils.isNotEmpty(resolution) && resolution.contains("*")){
				String[] resolutions = resolution.split("\\*");
				if(resolutions.length >= 2){
					this.width = Integer.parseInt(resolutions[0].trim());
					this.height = Integer.parseInt(resolutions[1].trim());
				}
			}
		}
		catch(Exception ignored){}
	}
	public String getMv(){
		return mv;
	}

	public void setMv(String mv){
		this.mv = mv;
	}

	public String getPv(){
		return pv;
	}

	public void setPv(String pv){
		this.pv = pv;
	}

	public String getSv(){
		return sv;
	}

	public void setSv(String sv){
		this.sv = sv;
	}

	public String getFloorMapping(){
		return floorMapping;
	}

	public void setFloorMapping(String floorMapping){
		this.floorMapping = floorMapping;
	}

	public String getAddress(){
		return address;
	}

	public void setAddress(String address){
		this.address = address;
	}

	public String getWifiName(){
		return wifiName;
	}

	public void setWifiName(String wifiName){
		this.wifiName = wifiName;
	}

	public String getWifiPassword(){
		return wifiPassword;
	}

	public void setWifiPassword(String wifiPassword){
		this.wifiPassword = wifiPassword;
	}

	public String getState(){
		return state;
	}

	public void setState(String state){
		this.state = state;
	}

	public Date getStateDate(){
		return stateDate;
	}

	public void setStateDate(Date stateDate){
		this.stateDate = stateDate;
	}

	public int getFullscreen(){
		return fullscreen;
	}

	public void setFullscreen(int fullscreen){
		this.fullscreen = fullscreen;
	}

	public int getTitledisplay(){
		return titledisplay;
	}

	public void setTitledisplay(int titledisplay){
		this.titledisplay = titledisplay;
	}

	public int getTimedisplay(){
		return timedisplay;
	}

	public void setTimedisplay(int timedisplay){
		this.timedisplay = timedisplay;
	}

	public int getSubtitledisplay(){
		return subtitledisplay;
	}

	public void setSubtitledisplay(int subtitledisplay){
		this.subtitledisplay = subtitledisplay;
	}

	public int getImageinterval(){
		return imageinterval;
	}

	public void setImageinterval(int imageinterval){
		this.imageinterval = imageinterval;
	}

	public String getDateformat(){
		return dateformat;
	}

	public void setDateformat(String dateformat){
		this.dateformat = dateformat;
	}

	public int getTimeformat(){
		return timeformat;
	}

	public void setTimeformat(int timeformat){
		this.timeformat = timeformat;
	}
}